using System.ComponentModel.DataAnnotations;

namespace B.S.NewMedical.Domain.User
{
    /// <summary>
    /// 权限实体模型
    /// </summary>
    public class PermissionModel : EntityModel
    {
        /// <summary>
        /// 权限名称
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string PermissionName { get; set; } = string.Empty;

        /// <summary>
        /// 权限代码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string PermissionCode { get; set; } = string.Empty;

        /// <summary>
        /// 所属模块
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Module { get; set; } = string.Empty;

        /// <summary>
        /// 权限描述
        /// </summary>
        [MaxLength(500)]
        public string? Description { get; set; }

        /// <summary>
        /// 排序顺序
        /// </summary>
        public int SortOrder { get; set; } = 0;

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; } = true;
    }
} 